<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>行天下 看世界</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <css file="__PUBLIC__/css/base.css"/>
        <js file="__PUBLIC__/js/jquery-1.7.2.min.js">
        <js file="__PUBLIC__/js/news.js">
    </head>
    <body>
        <!--现在的位置-->
            <div class="position">
                <span class="word">您现在的位置： ->  </span>
                <a href="__APP__/news/index" class="new_pos">内容管理</a>
                <span class="word"> -> 编辑文章 </span>
            </div>
            <!--文章正文-->
            <div class="cons">
                <form action="__CONTROL__/edit/" method="post">
                    <input type="hidden" name="id" value="{$_GET.id}"/>
                    <table class="table1">
                    <!--标题-->
                    <tr>
                        <td style="width:70px;text-align:right;color:#555;">标题:</td>
                        <th style="text-align:left;"><input type="text" name="title" style="width:360px;" value="{$field.title}"/></th>
                    </tr>
                    <!--发表栏目-->
                    <empty value="$_GET.catid">
                        <tr>
                            <th style="width:70px;text-align:right;color:#555;">发表栏目：</th>
                            <td style="text-align:left;">
                                <select name="catid">
                                    <option value=""> ==选择栏目== </option>
                                    <list from="$category" name="$v">
                                    <option value="{$v.catid}" <if value="$field.catid==$v.catid">selected="selected"</if>>{$v.html}└─{$v.cname}</option>
                                </list>
                                </select></td>
                        </tr>
                    </empty>
                    <!--来源-->
                    <tr>
                        <td style="width:70px;text-align:right;color:#555;">来源:</td>
                        <th style="text-align:left;">
                            <input type="text" name="news_data[source]" class="text" value="{$field.source}" style="width:170px;"/>
                            <select style="width:180px;" class="resource">
                                <option>===请选择===</option>
                                <list from="$res" name="$v">
                                    <option>{$v.sname}->{$v.url}</option>
                                </list>
                            </select>
                        </th>
                    </tr>
                    <!--缩略图-->
                    <tr>
                        <th style="width:70px;text-align:right;color:#555;">缩略图：</th>
                        <td style="text-align:left;">
                            <upload name="thumb" limit="1" imagesize="200,200"/>
                             <div id="hd_upload">
                                <input type="hidden" name="thumb[1][0]" value="{$field.thumb}"/>
                                <img src="__ROOT__/{$field.thumb}"/>
                            </div>
                        </td>
                    </tr>
                    <!--关键字-->
                    <tr>
                        <td style="width:70px;text-align:right;color:#555;">关键字:</td>
                        <th style="text-align:left;"><input type="text" name="keywords" style="width:360px;" value="{$field.keywords}"/></th>
                    </tr>
                    <!--描述-->
                    <tr>
                        <td style="width:70px;text-align:right;color:#555;">描述:</td>
                        <th style="text-align:left;">
                            <textarea style="width:70%;" name="description">{$field.description}
                            </textarea>
                        </th>
                    </tr>
                    <!--正文-->
                    <tr>
                        <td style="width:70px;text-align:right;color:#555;">正文:</td>
                        <th style="text-align:left;">
                            <editor name="news_data[body]" type="1" style="1" content="{$field.body}">
                        </th>
                    </tr>
                    <!--点击次数-->
                    <tr>
                        <td style="width:70px;text-align:right;color:#555;">点击次数:</td>
                        <th style="text-align:left;">
                            <input type="text" name='click' value="{$field.click}" style="color:#666;">
                        </th>
                    </tr>
                    <tr>
                        <td  style="width:70px;text-align:right;color:#555;">
                            <input type="submit" name="submit" value="修改文章">
                        </td>
                        <th></th>
                    </tr>
                    </table>
                </form>
            </div>
    </body>
</html>